package com.woyou.bean;

import java.util.List;

/**
 * 与后台交互的返回结果,封装bean的List
 * 
 * @author longtao.li
 * 
 * @param <T>
 */
public class CodeListResult<T> extends SuperBean {

	private static final long serialVersionUID = 1L;
	/**
	 * 返回码
	 */
	public int code = 0;
	/**
	 * 结果信息
	 */
	public String msg;
	/**
	 * 结果的实体
	 */
	public List<T> list;
	/**
	 * 页码
	 */
	public int page;

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public List<T> getList() {
		return list;
	}

	public void setList(List<T> list) {
		this.list = list;
	}

	@Override
	public String toString() {
		return "CodeListResult [code=" + code + ", msg=" + msg + ", list="
				+ list + ", page=" + page + "]";
	}

}
